<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>操行详细信息</title>
    <link href="../css/bootstrap-cerulean.css" rel="stylesheet">
    <link href="../css/charisma-app.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }

        .sidebar-nav {
            padding: 9px 0;
        }
    </style>

    <script src="http://lib.sinaapp.com/js/jquery/2.2.4/jquery-2.2.4.min.js"></script>
    <script src="../js/common/public.js"></script>
    <script src="../js/base64.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var urlMsg = parseUrl(window.location.search);
            $("#token").val(urlMsg.token);
            if (urlMsg.token != null) {
                var token = decode(urlMsg.token);
                token = token.substring(0, token.length - 1);
            }
            var html = $.ajax({
                type: "GET",
                url: "http://localhost:1068/admin/findStudentScore?token=" + token + "&startTime=" + urlMsg.startTime + "&endTime=" + urlMsg.endTime,
                async: false
            }).responseText;
            var result = eval('(' + html + ')');
            if (result.code != 200) {
                alert(result.msg)
            } else {
                if (result.data!=null){
                    for (index in result.data){
                        addStudentScoreTable(result.data[index].studentNumber,
                            result.data[index].name,
                            result.data[index].finallyScore,
                            result.data[index].reason,
                            result.data[index].remark,
                            result.data[index].page,
                            result.data[index].operator,
                            result.data[index].operateDate)

                    }
                }

            }
        });

        function addStudentScoreTable(studentNumber, name, score, reason, remark,page,operator,operatorDate) {
            $("#studentScoreList tbody").append("  <tr class='odd'>" +
                " <td class=' sorting_1'>"+studentNumber+"</td>" +
                " <td class='center '>"+name+"</td>" +
                " <td class='center '>"+score+"</td>" +
                " <td class='center '>"+reason+"</td>" +
                " <td class='center '>"+remark+"</td>" +
                " <td class='center '>"+page+"</td>" +
                " <td class='center '>"+operatorDate+"</td>" +
                " <td class='center '>"+operator+"</td>" +
                " </tr>");

        }
    </script>
</head>

<body>
<div class="container-fluid"
     style="padding-left:0px;padding-right:2px;">
    <div class="row-fluid">
        <div id="content" class="span10" style="width:100%;">
            <div class="row-fluid sortable">
                <div class="box span12">
                    <div class="box-header well">
                        <h2>
                            <i class="icon-user"></i>操行详细信息
                        </h2>
                    </div>

                    <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper">

                        <table class="table table-striped table-bordered bootstrap-datatable datatable dataTable"
                               id="studentScoreList">
                            <thead>
                            <tr>
                                <th class="sorting_asc" rowspan="1" colspan="1" style="width: 113px;">学生学号</th>
                                <th class="sorting_asc" rowspan="1" colspan="1" style="width: 113px;">学生姓名</th>
                                <th class="sorting" rowspan="1" colspan="1" style="width: 45px;">分值</th>
                                <th class="sorting" rowspan="1" colspan="1" style="width: 331px;">原因</th>
                                <th class="sorting" rowspan="1" colspan="1" style="width: 131px;">部门</th>
                                <th class="sorting" rowspan="1" colspan="1" style="width: 83px;">页码</th>
                                <th class="sorting" rowspan="1" colspan="1" style="width: 83px;">操作时间</th>
                                <th class="sorting" rowspan="1" colspan="1" style="width: 83px;">操作者</th>
                            </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>